﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IWMAG.Core.Objects;
using Microsoft.Xna.Framework;

namespace IWMAG.Core.Hitboxes {
    public struct PointHitbox : IHitbox {
        public Vector2 Origin { get; set; }
        public Vector2 Position;

        public PointHitbox(Vector2 pos) : this() {
            Position = pos;
        }

        public void Shift(Vector2 rel) {
            Position += rel;
        }

        public IHitbox Add(Vector2 rel) {
            return new PointHitbox(Position + rel);
        }

        public IEnumerable<Vector2> GetPoints() {
            return new Vector2[] { Position - Origin };
        }

        public bool Contains(Point a) {
            return false;
        }

        public bool Contains(Vector2 a) {
            return false;
        }

        public bool CollidesWith(IHitbox a) {
            return false;
        }

        public void Update(Vector2 pos) {
            Position = pos;
        }
    }
}
